#pragma once
#include <action\Action.h>
#include "..\GameCore.h"

class RunLaserAction : public ds::Action {

public:
	RunLaserAction(GameCore* core) : Action("RunLaser") , m_Core(core) , m_CurrentRow(-1) {}
	virtual ~RunLaserAction(void) {}
	void start() {
		m_Core->laser().setActive(true);
		m_Core->laser().reset();
		setActive(true);
	}
	void stop() {
		m_Core->laser().reset();
		m_Core->laser().setActive(false);
		setActive(false);
	}
	void update(float elapsed);
private:
	int m_CurrentRow;	
	GameCore* m_Core;
};
